package com.lixingye.meowstar.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lixingye.meowstar.model.ArticleReply;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 猫大仙
 * @since 2025-01-14
 */
public interface IArticleReplyService extends IService<ArticleReply> {
    /**
     * 帖子回复
     * @param articleReply
     */
    @Transactional
    void create(ArticleReply articleReply);
    /**
     * 根据帖子id查询所有回复
     * @param articleId
     * @return
     */
    List<ArticleReply> selectByArticleId( Long articleId);
}
